@echo off
set ROOTFOLDER=%~d0%~p0
set MSBUILD=%WinDir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
set TRASHFOLDER=%LOCALAPPDATA%\WMVConvert
set LOG=%TRASHFOLDER%\WMVConvert %DATE:/=.% %TIME::=.%.log
set FFDSHOWREG=%ROOTFOLDER%\ffdshow.reg
cd "%ROOTFOLDER%"
mkdir "%TRASHFOLDER%"
regedit /s "%FFDSHOWREG%"
echo %MSBUILD% /nologo "%ROOTFOLDER%\WMVConvert.project" %* > "%LOG%"
%MSBUILD% /nologo "%ROOTFOLDER%\WMVConvert.project" %* >> "%LOG%"
